<?php
function __autoload($className) {
    $classFile = __DIR__ . DIRECTORY_SEPARATOR . str_replace('\\', DIRECTORY_SEPARATOR, $className) . '.php';
    require_once $classFile;
}

use Animal\Cat;
use Zoo\Zoo;


$cat1 = new Cat('Tom', 'bule', 'cat');
$cat2 = new Cat('Jack', 'yellow', 'cat');
$cat3 = new Cat('Ding', 'black', 'cat');

$zoo = new Zoo();
$zoo->addAnimal($cat1);
$zoo->addAnimal($cat2);
$zoo->addAnimal($cat3);

$zoo->watch();
$zoo->kill();